package com.example.yunJie.digitalSentry.service.impl;

import com.example.yunJie.digitalSentry.entity.RoleEntity;
import com.example.yunJie.digitalSentry.mapper.one.RoleMapper;
import com.example.yunJie.digitalSentry.service.RoleService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class RoleServiceImpl implements RoleService {

    private final RoleMapper roleMapper;

    @Override
    public List<RoleEntity> find() {
      return   roleMapper.find();
    }
}
